package com.yinhai.message.core.dao;

import com.yinhai.message.manage.msgmg.vo.MessageDetailVo;
import org.springframework.stereotype.Repository;

import com.yinhai.core.service.ta3.domain.dao.HibernateDAO;
import com.yinhai.message.core.po.MessagePo;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author yanglq 2017.3.24
 *
 */
@Repository("messageDao")
public class MessgaeDaoImpl extends HibernateDAO<MessagePo> implements IMessageDao{

	@Override
	public MessagePo save(MessagePo po) {
		super.save(po);
		return po;
	}
	@Override
	public  void update(MessagePo po) {
		update(po);
	}

	@Override
	public List<MessageDetailVo> queryMessageDetailsByMsgId(String hql, Map param) {
		return super.selectFromMultiTable(hql,param);
	}
}
